// ------------------------------------------------------ Naming ------------------------------------------------------
Name MiG-19PT
ShortName mig19pt
// ------------------------------------------------------ Visuals ------------------------------------------------------
Icon iconmig19
Model CowPack.mig19
Texture skinmig19pt
//Third Person Camera Distance
CameraDistance 8.0
//Resting Pitch. Set this so the plane spawns level. It will fall onto its collision boxes automatically, but this lets you start it flat
RestingPitch 5.0
HasGear True
ModelScale 1.0
// ------------------------------------------------------ Movement ------------------------------------------------------
//Mode : One of Plane, Heli or VTOL. The VTOL has a toggle button that switches some model aesthetics and the flight mode
Mode Plane
//Throttle
MaxThrottle 1.08
MaxNegativeThrottle 0.0
//Yaw modifiers
TurnLeftSpeed 1.7
TurnRightSpeed 1.7
//Pitch modifiers
LookUpSpeed 1.7
LookDownSpeed 1.7
//Roll modifiers
RollLeftSpeed 1.8
RollRightSpeed 1.8
//Drag 1.0 is standard. Modify to make the plane / heli more or less sluggish
Drag 0.4
//Lift
//Lift 2.5
//Wheels
NumWheels 3
WheelPosition 0 -92 -12 -15
WheelPosition 1 -92 -12 15
WheelPosition 2 12 -9 0
WheelSpringStrength 0.125
//Propeller <ID> <x> <y> <z> <planePart> <recipeItem>
Propeller 0 54 2 0 nose advmetalcompound
// ------------------------------------------------------ Weaponry ------------------------------------------------------
//Weapon types. Options are Missile, Bomb, Gun, Shell, None
Primary Gun
Secondary Missile
//Time between shots in 1/20ths of seconds
ShootDelayPrimary 2
ShootDelaySecondary 65
//Whether to alternate or fire all together
AlternatePrimary False
AlternateSecondary True
//Firing modes. One of SemiAuto, FullAuto or Minigun
ModePrimary FullAuto
ModeSecondary SemiAuto
//Add shoot origins. These are the points on your vehicle from which bullets / missiles / shells / bombs appear
ShootPointPrimary 68 20 16.5 core 30mmgun
ShootPointPrimary 68 20 -17.5 core 30mmgun
ShootPointSecondary 11 12 -49 leftWing
ShootPointSecondary 11 12 47 rightWing
// ------------------------------------------------------ Inventory ------------------------------------------------------
CargoSlots 0
BombSlots 0
MissileSlots 2
AllowAllAmmo False
AddAmmo r3smissile
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2000
// ------------------------------------------------------ Passengers ------------------------------------------------------
Pilot 68 21 0
Passengers 0
// ------------------------------------------------------ Sounds ------------------------------------------------------
StartSound cowjetstart
StartSoundLength 60
PropSound cowjetfly
PropSoundLength 27
ShootSoundPrimary 30mmaashell
ShootSoundSecondary unguidedrocketfire
// ------------------------------------------------------ Recipe ------------------------------------------------------
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts core 1 cowairframe 20 metalcompound 2 advmetalcompound
AddRecipeParts coreWheel 2 cowwheel
AddRecipeParts nose 15 metalcompound
AddRecipeParts rightWing 1 cowwings
AddRecipeParts leftWing 1 cowwings
AddRecipeParts tail 1 cowtail
AddRecipeParts tailWheel 1 metalcompound
// ------------------------------------------------------ Health and hitboxes ------------------------------------------------------
SetupPart core 225 -88 7 -13 177 29 24
SetupPart nose 200 89 9 -11 35 25 20
SetupPart rightWing 135 -65 16 11 87 3 67
SetupPart leftWing 135 -65 16 -80 87 3 67
SetupPart tail 175 -145 20 -4 57 49 6
BulletDetection 10

CollisionPoint 123 20 0 nose
CollisionPoint 24 20 0 core
CollisionPoint -59 20 0 core
CollisionPoint -23 20 44 rightWing
CollisionPoint -24 20 -45 leftWing
CollisionPoint -60 16 67 rightWing
CollisionPoint -61 17 -68 leftWing

IsExplosionWhenDestroyed true

//----------------------------Exhaust Effects
//1st gear change
AddEmitter explode 1 [-106,22,5] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core
AddEmitter explode 1 [-106,22,-5] [1,1,1] [0,1.5,0] 0.02 0.07 0 1 core

//1st gear
AddEmitter explode 1 [-106,22,5] [1,1,1] [0,0.2,0] 0.05 0.12 0 1 core
AddEmitter explode 1 [-106,22,-5] [1,1,1] [0,0.2,0] 0.05 0.12 0 1 core
//2nd gear change

//2nd gear
AddEmitter flansmod.fmflame 1 [-106,22,5] [1,1,1] [0,0.7,0] 0.12 0.5 0 1 core
AddEmitter flansmod.fmflame 1 [-106,22,-5] [1,1,1] [0,0.7,0] 0.12 0.5 0 1 core

//3rd gear change
AddEmitter hugeexplosion 1 [-60,20,5] [1,1,1] [0,4,0] 0.83 0.85 0 1 core

//3rd gear
AddEmitter flansmod.fmflame 1 [-106,22,5] [1,1,1] [0,0.7,0] 0.5 2 0 1 core
AddEmitter flansmod.fmflame 1 [-106,22,-5] [1,1,1] [0,0.5,0] 0.5 2 0 1 core

//4th gear change
AddEmitter flansmod.fmflame 1 [-106,22,5] [1,1,1] [0,5,0] 0.7 0.75 0 1 core
AddEmitter flansmod.fmflame 1 [-106,22,-5] [1,1,1] [0,5,0] 0.7 0.75 0 1 core

Description Russian Fighter Jet_30mm Gun_R-3S Air-Air Missile